<!--
 * @Author: ying
 * @Date: 2021-07-29 13:53:24
 * @LastEditTime: 2021-10-26 10:44:47
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \inventory-apie:\hjimi\人脸辨识云\html\gitlab\pc\faceCloudWebsite\src\views\face-recognition\resource-manage\resource-list\resourceList.vue
-->
<style scoped>
.spin {
  width: 100%;
  height: 100%;
}
</style>
<template>
  <div class="app_container">
    <a-spin class="spin" :spinning="spinning" tip="加载中...">
      <ResourceModule  v-for="(item, index) in resourceData" :key="index" :resourceData="item" />
    </a-spin>
  </div>
</template>
<script>
import ResourceModule from "./components/ResourceModule"
import { listServiceResourceList } from "@/api/face-recognition/resourceManage"

export default {
  components: {
    ResourceModule,
  },
  data() {
    return {
      resourceData: [],
      spinning: true
    }
  },
  methods: {
    async tableList() {
      let res = await listServiceResourceList()
      if (res.code == 0) {
        this.resourceData = res.data
        this.spinning = false
      }
    }
  },
  created() {
    this.tableList()
  }
}
</script>